package com.bean;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

/**
 * 收银记录交易表实体类
 */
public class CashierOrderRecord implements Serializable {
    /**主键id*/
    private Integer id;
    /**订单id*/
    private Long orderId;
    /**订单总金额*/
    private Double orderMoney;
    /**总盈利*/
    private Double profits;
    /**交易时间*/
    private Date createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Double getOrderMoney() {
        return orderMoney;
    }

    public void setOrderMoney(Double orderMoney) {
        this.orderMoney = orderMoney;
    }

    public Double getProfits() {
        return profits;
    }

    public void setProfits(Double profits) {
        this.profits = profits;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public CashierOrderRecord() {
    }

    public CashierOrderRecord(Long orderId) {
        this.orderId = orderId;
    }

    public CashierOrderRecord(Long orderId, Double orderMoney, Double profits, Date createTime) {
        this.orderId = orderId;
        this.orderMoney = orderMoney;
        this.profits = profits;
        this.createTime = createTime;
    }

    public CashierOrderRecord(Integer id, Long orderId, Double orderMoney, Double profits, Date createTime) {
        this.id = id;
        this.orderId = orderId;
        this.orderMoney = orderMoney;
        this.profits = profits;
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "CashierOrderRecord{" +
                "id=" + id +
                ", orderId=" + orderId +
                ", orderMoney=" + orderMoney +
                ", profits=" + profits +
                ", createTime=" + createTime +
                '}';
    }
}
